home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / WASTE Object Handlers 1.2.2.sit / WASTE Object Handlers 1.2.2 / Handler Headers / WE_snd_Handler.h < prev    next >
Text File  |  1996-03-28  |  907b  |  36 lines

  1.  
  2. #ifndef __SOUND__
  3. #include <Sound.h>
  4. #endif
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. void            InitSoundObjectHandler( void );
  11. pascal OSErr    HandleNewSound(Point *defaultObjectSize,WEObjectReference objectRef);
  12. pascal OSErr    HandleDisposeSound( WEObjectReference objectRef );
  13. pascal OSErr    HandleDrawSound(Rect *destRect, WEObjectReference objectRef );
  14. pascal Boolean    HandleClickSound(    Point hitPt, 
  15.                             short modifiers, 
  16.                             long clickTime, 
  17.                             WEObjectReference objectRef);
  18.                             
  19. SndChannelPtr    CreateNewSoundChannel( void );
  20.  
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24.  
  25. #define        kSoundIconID        550
  26.  
  27. #define        kTypeSound            'snd '
  28.  
  29. //
  30. // If you want the sound object handler's sound channel to
  31. // be create on initialization, define CREATE_CHANNEL_AT_INIT
  32. // to the value 1.  Define CREATE_CHANNEL_AT_INIT to the value
  33. // 0 if you want the channel to be created when first needed.
  34. //
  35.  
  36. #define CREATE_CHANNEL_AT_INIT 1